import request from '@/utils/request'

// 查询速算列表
export function listFastmath(query) {
  return request({
    url: '/base/fastmath/list',
    method: 'get',
    params: query
  })
}

// 查询速算详细
export function getFastmath(fastmathId) {
  return request({
    url: '/base/fastmath/' + fastmathId,
    method: 'get'
  })
}

// 新增速算
export function addFastmath(data) {
  return request({
    url: '/base/fastmath',
    method: 'post',
    data: data
  })
}

// 修改速算
export function updateFastmath(data) {
  return request({
    url: '/base/fastmath',
    method: 'put',
    data: data
  })
}

// 删除速算
export function delFastmath(fastmathId) {
  return request({
    url: '/base/fastmath/' + fastmathId,
    method: 'delete'
  })
}
